package com.itheima.内部类.匿名内部类.接口匿名内部类;

/**
 * @Author 王加鑫
 * @Date 2021/5/9 15:29
 * @Version 1.0
 */
public class JumpTest {

    public static void main(String[] args) {
        useJump(new Jump() {
            @Override
            public void jumpping() {
                System.out.println("乌龟在学跳高");
            }

            @Override
            public void method() {
                System.out.println("乌龟没了");

            }
        });

    }

    public static void useJump(Jump j){
        j.jumpping();
        j.method();
    }
}
